package com.yuan.service;

import com.yuan.bean.LibraryCard;

import java.util.List;

public interface LibraryCardService {

    //查询所有
    public List<LibraryCard> selectAllByUserId(Integer userId);

    //借书
    public boolean borrowBook(Integer userId,Integer bookId);

    //还书
    public boolean returnBook(Integer userId,Integer bookName);

    //动态查询所有借书记录
    public List<LibraryCard> selectAll(String userName);

    //检查用户的借书时间是否到期
    public List<LibraryCard> outTime(Integer userId);
}
